Search
CustomPaintEventArgs.CreateLinearGradient Method (PointF, PointF, Object[])
See Also
 






Creates a linear gradient with orientation defined by two points and a blend specified by a series of positions and color objects.

Namespace: MindFusion.Gauges
Assembly: MindFusion.Gauges

 Syntax

C#  Copy Code

public LinearGradientBrush CreateLinearGradient (
    PointF a,
    PointF b,
    Object[] positionsAndColors
)

Visual Basic  Copy Code

Public Function CreateLinearGradient ( _
    a As PointF, _
    b As PointF, _
    positionsAndColors() As Object _
) As LinearGradientBrush

 Parameters

a

The first point determining the gradient orientation.

b

The second point determining the gradient orientation.

positionsAndColors
An alternating sequence of float and Color pairs where each pair defines a gradient stop. The positions in the sequence need to be in ascending order.

 Return Value

A MindFusion.Drawing.LinearGradientBrush with the specified characteristics.

 See Also